package com.heima.day529_休息;

public class narcissus {

    public static void main(String[] args) {
        int count=0;
        for (int i = 100; i < 1000; i++) {
           int ge=i%10;
           int shi=i/10%10;
           int bai=i/10/10%10;
           if (ge*ge*ge+shi*shi*shi+bai*bai*bai==i){
               count++;
           }
        }
        System.out.println("水仙花一共有"+count+"个");
    }
}
